<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>客户流失管理</title>
    <link rel="stylesheet" href="static/commons/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="static/css/public.css" media="all"/>
</head>
<body class="childrenBody">
<form class="layui-form">
    <blockquote class="layui-elem-quote quoteBox">
    <h2>客户流失管理</h2><br/>
    <form class="layui-form" id="search_loss">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <div class="layui-form-item">
                    <label class="layui-form-label layui-bg-blue layui-center">客户</label>
                    <div class="layui-input-block">
                        <input type="search" class="layui-input" name="name"/>
                    </div>
                </div>
            </div>
            <div class="layui-input-inline">
                <div class="layui-form-item">
                    <label class="layui-form-label layui-bg-blue layui-center">客户经理</label>
                    <div class="layui-input-block">
                        <input type="search" class="layui-input" name="mgr"/>
                    </div>
                </div>
            </div>
            <div class="layui-input-inline">
                <div class="layui-form-item">
                    <label class="layui-form-label layui-bg-blue layui-center">状态</label>
                    <div class="layui-input-block">
                        <select name="status">
                            <option value="-1">全部</option>
                            <option value="0">暂缓流失</option>
                            <option value="1">确认流失</option>
                        </select>
                    </div>
                </div>
            </div>

            <%--<div class="layui-input-inline">--%>
                <%--<input type="search" class="layui-input" name="search"/>--%>
            <%--</div>--%>
            <div class="layui-input-inline">
                <div class="layui-form-item">
                    <a class="layui-btn layui-btn-normal layui-btn-radius" lay-submit lay-filter="search">查询</a>
                    <a class="layui-btn layui-btn-radius help_btn">帮助</a>
                </div>
            </div>
        </div>
    </form>
</blockquote>
   <table id="lossList" lay-filter="lossList"></table>

    <!--审核状态-->
    <script type="text/html" id="status">
        {{#  if(d.status == "0"){ }}
        <span class="layui-blue">暂缓流失</span>
        {{#  } else if(d.status == "1"){ }}
        <span class="layui-red">确认流失</span>
        {{#  } else { }}
            未操作
        {{#  }}}
    </script>

    <script type="text/html" id="lossListBar">
        <a class="layui-btn layui-btn-warm layui-btn-xs layui-btn-radius" lay-event="suspend">暂缓流失</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs layui-btn-radius" lay-event="confirm">确认流失</a>
    </script>
</form>
    <script type="text/javascript" src="static/commons/layui/layui.js"></script>
    <script type="text/javascript" src="static/js/khgl/customerLoss.js"></script>
</body>
</html>
